* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #333;
    background-color: #f8f8f8;
}

.container {
    margin: 0 auto;
    max-width: 100%;
    padding: 20px;
}

.header {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #dbd4d4;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.logo {
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    margin: 15px;
    padding: 5px;
    width: 400px;
}

.search {
    display: flex;
    align-items: center;
    background-color: #eee;
    border-radius: 4px;
    padding: 0 10px;
    top: 5px;
    margin-left: -950px;
}

.search-input {
    border: none;
    background-color: transparent;
    flex: 1;
    margin: 5px;
}

.search-btn {
    color: #999;
    cursor: pointer;
}

.nav {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 40px;
    margin-left: 180px;
    margin-right: 180px;

}

.nav-links li {
    list-style: none;
    display: inline-block;
}

.nav-links a {
    display: block;
    padding: 10px 15px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color .3s;
}

.nav-links a:hover {
    color: #0084ff;
}

.navbar-right {
    float: right !important;
    margin-right: -15px;
    list-style: none;
}

.navbar-right~.navbar-right {
    margin-right: 0;
}

.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 160px;
    padding: 5px 0;
    margin: 2px 0 0;
    font-size: 14px;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid #ccc;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 4px;
    -webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175)
}

.dropdown-menu>li>a {
    display: block;
    padding: 3px 20px;
    clear: both;
    font-weight: 400;
    line-height: 1.42857143;
    color: #333;
    white-space: nowrap
}

.dropdown-menu>li>a:focus,
.dropdown-menu>li>a:hover {
    color: #262626;
    text-decoration: none;
    background-color: #f5f5f5
}

.dropdown-menu>.active>a,
.dropdown-menu>.active>a:focus,
.dropdown-menu>.active>a:hover {
    color: #fff;
    text-decoration: none;
    background-color: #337ab7;
    outline: 0;
}

.navbar-right {
    display: flex;
    list-style-type: none;
    /* 去掉默认的列表样式 */
    padding: 0;
    margin-right: 10px;
}

.navbar-right a {
    text-decoration: none;
    color: #000;
}

.pic {
    width: 50px;
    height: 50px;
    border-radius: 20px;
}

.pp {
    margin: 20px 20px;
}

.sidebar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);

    width: 170px;
    position: absolute;
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px 10px;
}

.sidebar-links li {
    list-style: none;
    display: block;
    margin-bottom: 30px;
}

.sidebar-links a {
    display: block;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: bold;
    color: #333;
    text-decoration: none;
    transition: color .3s;
}

.sidebar-links a:hover {
    color: #0084ff;
}

.parttwo {
    float: left;

}

.content {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    padding: 20px;
    margin-left: 180px;
    width: 1000px;

}

.card {
    width: 300px;
    margin: 10px;
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.card:hover {
    box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.card .title {
    font-size: 18px;
    font-weight: bold;
    padding: 10px;
}

.card .excerpt {
    font-size: 12px;
    line-height: 1.5;
    padding: 10px;
    bottom: 0;
    left: 0;
    right: 0;
    color: #736767;
}

.card .meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: #c3bebe;
    padding: 10px;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, .8);
}

.card .meta span {
    margin-right: 10px;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination a {
    display: inline-block;
    padding: 5px 10px;
    margin: 0 5px;
    font-size: 14px;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    transition: all .3s;
}

.pagination a:hover {
    background-color: #0084ff;
    color: #fff;
}

.pagination .current-page {
    background-color: #0084ff;
    color: #fff;
}

.right-sidebar {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .1);
    top: 120px;
    right: 0;
    /* 右侧定位 */
    width: 200px;
    position: absolute;
    margin-top: 20px;
    padding: 20px;
}

.right-sidebar h2 {
    font-size: 18px;
    margin-bottom: 10px;
}

.sidebar-post-list {
    list-style: none;
    padding: 0;
}

.sidebar-post-list li {
    margin-bottom: 10px;
    font-size: 11px;
}

.sidebar-post-list a {
    color: #333;
    text-decoration: none;
    transition: color .3s;
}

.sidebar-post-list a:hover {
    color: #0084ff;
}

.navbar-right {
    float: right !important;
    margin-right: -15px;
    list-style: none;
}

.navbar-right~.navbar-right {
    margin-right: 0;
}

.connect {
    float: left;
}

.connect p {
    font-weight: bold;
    font-size: 15px;
    margin: 10px 0 10px 0;
}

.connect span {
    font-size: 12px;
}

.connect-pic img {
    width: 20px;
    height: 20px;
}
.connect-body{
    text-align: center;
    margin: 10px 0;
}
.connect-body img{
    width: 90px;
    height: 90px;
}